﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace TB_CS.Plug
{
    public partial class Refresh_HB : Form
    {
        private static string QR_Scene;
        public Refresh_HB(string QR_scene_id)
        {
            QR_Scene = QR_scene_id;
            InitializeComponent();
        }

        private void Refresh_HB_Load(object sender, EventArgs e)
        {
            this.Text = QR_Scene + " 红包状态恢复";
            radioButton1.Checked = true;
        }

        private void button1_Click(object sender, EventArgs e)
        {
            if(radioButton1.Checked)
            {
                Class.SysInfo.WSHB.Refresh_HB(QR_Scene, "Wait_Collect");
            }
            else if(radioButton2.Checked)
            {
                Class.SysInfo.WSHB.Refresh_HB(QR_Scene, "UN_Collect");
            }
            else if (radioButton3.Checked)
            {
                Class.SysInfo.WSHB.Refresh_HB(QR_Scene, "Wait_Collect_Rate_2");
            }
            MessageBox.Show("恢复成功", "Success");
            this.Close();
        }
    }
}
